<?php

namespace Bmb\EventBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Vote
 *
 * @ORM\Table(name="bmb_vote")
 * @ORM\Entity(repositoryClass="Bmb\EventBundle\Entity\VoteRepository")
 */
class Vote
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="vot_name", type="string", length=255)
     */
    private $votName;

    /**
     * @var string
     *
     * @ORM\Column(name="vot_email", type="string", length=255)
	 * @Assert\Email(
     *     message = "'{{ value }}' n'est pas un email valide.",
     *     checkMX = true
     * )
     */
    private $votEmail;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="vot_date", type="datetime")
     */
    private $votDate;

    /**
     * @var string
     *
     * @ORM\Column(name="vot_gender", type="text", nullable=false)
     */
    private $votGender;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="vot_weight", type="float", nullable=false)
     */
    private $votWeight;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="vot_size", type="integer", nullable=false)
     */
    private $votSize;

    /**
     * @var integer
     *
     * @ORM\Column(name="vot_event", type="integer")
	 * @ORM\ManyToOne(targetEntity="Bmb\EventBundle\Entity\Event")
	 * @ORM\JoinColumn(nullable=false)
     */
    private $votEvent;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set votName
     *
     * @param string $votName
     * @return Vote
     */
    public function setVotName($votName)
    {
        $this->votName = $votName;

        return $this;
    }

    /**
     * Get votName
     *
     * @return string 
     */
    public function getVotName()
    {
        return $this->votName;
    }

    /**
     * Set votEmail
     *
     * @param string $votEmail
     * @return Vote
     */
    public function setVotEmail($votEmail)
    {
        $this->votEmail = $votEmail;

        return $this;
    }

    /**
     * Get votEmail
     *
     * @return string 
     */
    public function getVotEmail()
    {
        return $this->votEmail;
    }

    /**
     * Set votDate
     *
     * @param \DateTime $votDate
     * @return Vote
     */
    public function setVotDate($votDate)
    {
        $this->votDate = $votDate;

        return $this;
    }

    /**
     * Get votDate
     *
     * @return \DateTime 
     */
    public function getVotDate()
    {
        return $this->votDate;
    }

    /**
     * Set votGender
     *
     * @param string $votGender
     * @return Vote
     */
    public function setVotGender($votGender)
    {
        $this->votGender = $votGender;

        return $this;
    }

    /**
     * Get votGender
     *
     * @return string 
     */
    public function getVotGender()
    {
        return $this->votGender;
    }

    /**
     * Set votWeight
     *
     * @param float $votWeight
     * @return Vote
     */
    public function setVotWeight($votWeight)
    {
        $this->votWeight = $votWeight;

        return $this;
    }

    /**
     * Get votWeight
     *
     * @return float 
     */
    public function getVotWeight()
    {
        return $this->votWeight;
    }

    /**
     * Set votSize
     *
     * @param integer $votSize
     * @return Vote
     */
    public function setVotSize($votSize)
    {
        $this->votSize = $votSize;

        return $this;
    }

    /**
     * Get votSize
     *
     * @return integer 
     */
    public function getVotSize()
    {
        return $this->votSize;
    }

    /**
     * Set votEvent
     *
     * @param integer $votEvent
     * @return Vote
     */
    public function setVotEvent($votEvent)
    {
        $this->votEvent = $votEvent;

        return $this;
    }

    /**
     * Get votEvent
     *
	 * @return Bmb\EventBundle\Entity\Event 
     * @return integer 
     */
    public function getVotEvent()
    {
        return $this->votEvent;
    }
}
